<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/include/includeHeader.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ page import="com.kylin.common.util.JspHelper,
				com.kylin.common.paginate.DisplayPage,
				com.kylin.module.shop.orm.Company,
				com.kylin.common.Constants" %>
    <div class="in_title_lin"><bean:message key="home.06"/></div>
    <div id="in_tcom">
    <%
        int listSize=0;
    	if(request.getAttribute("newCompanyList")  instanceof DisplayPage)
    	{
    		DisplayPage dispage = (DisplayPage)request.getAttribute("newCompanyList");
    		listSize = dispage.getList().size();
    		for(int i=0;i< listSize;i++)
    		{
    			Company obj = (Company)dispage.getList().get(i);	

     %>

      <ul>
       <li>
       	   <a href="/module/shop/company/shop.do?CMD=companyShopList&companyId=<%=obj.getId()%>" target="_blank">
             <img src="/fileOutServlet?imgType=<%=Constants.IMG_COMPANYLOGO%>&imgurl=<%=obj.getLogo() %>" width="80">
           </a>
       </li>
       <li class="in_content">
		   <a href="/module/shop/company/shop.do?CMD=companyShopList&companyId=<%=obj.getId()%>" target="_blank">
			  <%=obj.getName() %>
		   </a><br>
       		<%=JspHelper.substring(obj.getCompanyIntro(),240,"...")%>
       </li>
      </ul>
    <div class="clean"></div>
    <%
        		}
    	}else
    	{
    		out.print("没有公司信息");
    	}
     %>
    </div>
    <% if(listSize > 0){ %>
    <div class="in_more"><a href="/module/shop/shop.do?CMD=companyList" target="_blank"><bean:message key="base.04" /></a></div>
    <% } %>
